package com.zzw.service.Impl;

import com.zzw.bean.Agent;
import com.zzw.bean.ShareRadio;
import com.zzw.dao.AgentMapper;
import com.zzw.dao.ShareRadioMapper;
import com.zzw.service.AgentService;
import com.zzw.service.ShareRadioService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @author 赵志伟
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Service
@Slf4j
public class ShareRadioServiceImpl implements ShareRadioService {
    @Resource
    private ShareRadioMapper shareRadioMapper;

    @Override
    public List<ShareRadio> selectShareRadioByAgentId(Integer agentId) {
        return shareRadioMapper.selectShareRadioByAgentId(agentId);
    }

    @Override
    public List<ShareRadio> selectShareRadioByParentId(Integer parentId) {
        return shareRadioMapper.selectShareRadioByParentId(parentId);
    }

    @Override
    public int insertShareRadio(ShareRadio shareRadio) {
        return shareRadioMapper.insertShareRadio(shareRadio);
    }

    @Override
    public int updateShareRadioStatus(ShareRadio shareRadio) {
        return shareRadioMapper.updateShareRadioStatus(shareRadio);
    }
}
